package com.yj_app.qualitytest.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yj_app.qualitytest.R;
import com.yj_app.qualitytest.info.BcInfo;
import com.yj_app.qualitytest.info.BcInfo;

import java.util.List;

public class BCadapter extends BaseQuickAdapter<BcInfo, BaseViewHolder> {
    public BCadapter(int layoutResId, @Nullable List<BcInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, BcInfo item) {

        helper
                .setText(R.id.xm_name,item.getItemname())
                .setText(R.id.cj_name,item.getCjname())
                .setText(R.id.line_name,item.getScxname())
                .setText(R.id.team_name,item.getGcode())
                .setText(R.id.zr_name,item.getNickname())
                .setText(R.id.machine_no,item.getMachino())
                .setText(R.id.bzfs_tv,item.getBzfs())
                .setText(R.id.k_sorce,"\u2000"+item.getCount()+"\u2000")
                .setText(R.id.k_wucha,"\u2000"+item.getWucha()+"\u2000");
//         .setText(R.id.k_sorce,item.getCount())
//                .setText(R.id.k_wucha,item.getWucha());
    }
}
